//
//  CascadeListFrameView.h
//  etionRichText
//
//  Created by wangjian on 11/15/13.
//
//

#import <UIKit/UIKit.h>
#import "CascadeListView.h"

@class CCascadeNavView;
@protocol CCascadeNavViewDelegate <NSObject>

@optional
- (BOOL)cascadeNavView:(CCascadeNavView *)view willPopupTitleAtIndex:(NSUInteger)index;
- (void)cascadeNavView:(CCascadeNavView *)view didPopupTitleAtIndex:(NSUInteger)index;
- (void)cascadeNavViewCloseBtnClicked:(CCascadeNavView *)view;

@end

@interface CCascadeNavView : UIView

@property (nonatomic, assign) id<CCascadeNavViewDelegate> delegate;
@property (nonatomic, assign, getter = isSearchBarVisible) BOOL searchBarVisible;
@property (nonatomic, readonly) XUISearchBar *searchBar;

- (void)setSearchBarVisible:(BOOL)searchBarVisible animated:(BOOL)animated;
- (void)pushTitle:(NSString *)title animated:(BOOL)animated;
- (void)popTitleAnimated:(BOOL)animated;

@end

@class CCascadeListFrameView;
@protocol CCascadeListFrameViewDelegate <NSObject>

- (void)cascadeListFrameViewConfirmBtnClicked:(CCascadeListFrameView *)view;
- (void)cascadeListFrameViewCloseBtnClicked:(CCascadeListFrameView *)view;

@end

@interface CCascadeListFrameView : UIView

@property (nonatomic, assign) id<CCascadeListFrameViewDelegate> delegate;

- (id)initWithFrame:(CGRect)frame data:(CCascadeData *)data;
- (void)setDataVisible:(CCascadeSelectorCellData *)data animated:(BOOL)animated;

@end

